package com.foreveross.taskservice.application.task.statsdetail.vo;

import java.util.List;

import org.dayatang.querychannel.Page;

public class TaskServicePage<T> extends Page<T> {
	public static final int DEFAULT_PAGE_MAXSIZE = 200;
	private int pageMenuMaxSize = 10;// 页面上类似下一页的按钮最多出现几个
	private BaseChannelVO channel;
	private String crawlDateStr;
	private int taskStatus;
	private long pageCount = 0;
	private String resultId;
	private long resultExpire = 0;
	/**
	 * 
	 */
	private static final long serialVersionUID = -8706606779954076150L;

	public TaskServicePage(long start, long totalSize, int pageSize,
			List<T> data) {
		super(start, totalSize, pageSize, data);
		pageCount = super.getPageCount();
	}

	public TaskServicePage(long start, long totalSize, List<T> data) {
		super(start, totalSize, data);
		pageCount = super.getPageCount();
	}

	public BaseChannelVO getChannel() {
		return channel;
	}

	public void setChannel(BaseChannelVO channel) {
		this.channel = channel;
	}

	public String getCrawlDateStr() {
		return crawlDateStr;
	}

	public void setCrawlDateStr(String crawlDateStr) {
		this.crawlDateStr = crawlDateStr;
	}

	public int getTaskStatus() {
		return taskStatus;
	}

	public void setTaskStatus(int taskStatus) {
		this.taskStatus = taskStatus;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public static int getDefaultPageMaxsize() {
		return DEFAULT_PAGE_MAXSIZE;
	}

	public int getPageMenuMaxSize() {
		return pageMenuMaxSize;
	}

	public void setPageMenuMaxSize(int pageMenuMaxSize) {
		this.pageMenuMaxSize = pageMenuMaxSize;
	}

	public long getPageCount() {
		return pageCount;
	}

	public void setPageCount(long pageCount) {
		this.pageCount = pageCount;
	}

	public String getResultId() {
		return resultId;
	}

	public void setResultId(String resultId) {
		this.resultId = resultId;
	}

	public long getResultExpire() {
		return resultExpire;
	}

	public void setResultExpire(long resultExpire) {
		this.resultExpire = resultExpire;
	}

}
